<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
 

<s:form id="add_zdxzdc_form" name="add_zdxzdc_form" method="post" action="zdxzdc/save.do" onsubmit="return false;">
	<table class="form-table">
		<tr>
			<th width="150">日期：</th>
			<td>
			<s:textfield key="rq" title="请输入日期" cssClass="form-txtinput" id="rq" maxlength="20" value="%{model.rq}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" checkEmpty="true" checkDesc="日期"/>
			</td>
		</tr>
		<tr>
			<th width="150">相关工作项：</th>
			<td>
			<s:textarea rows="4"  title="请输入相关工作项" name="xggz" style="width:400px;" maxlength="300" checkEmpty="true" checkDesc="相关工作项"></s:textarea>
			</td>
		</tr>
		<tr>
			<th width="150">具体要求：</th>
			<td>
			<s:textarea rows="4"  title="请输入具体要求" name="jtyq" style="width:400px;" maxlength="300" checkEmpty="true" checkDesc="具体要求"></s:textarea>
			</td>
		</tr>
		<s:hidden name="lb" value="1"></s:hidden>
		<%-- 
		<tr>
			<th width="150">类别：</th>
			<td>
			<s:select name="lb" list="#{'':'请选择','1':'正常','2':'紧急' }" checkEmpty="true" checkDesc="类别" onchange="ZdxzdcUtils.xzlb(this)"></s:select>
			</td>
		</tr>
		
		<tr id="zxry" style="display:none;">
			<th>执行人员：</th>
			<td>
				<table border="0" cellspacing="1" cellpadding="1">
					<tr>
						<td valign="top" style="border: 0">
							<select id="selected_users_in_group" name="execUsers" multiple="true" size="10" style="width: 130px;">
									
							</select>
						</td>
						<td valign="top" style="border: 0">
							<a class="btn_short" title="点击新建用户" href="javascript:void(0)" 
								onClick="Ext.milan.pagejs.page_zdxzdc.selectUsers('selected_users_in_group')">添加</a>
							<a class="btn_short" title="点击新建用户" href="javascript:void(0)" id="del_user_in_group_btn" class="btn-short" style="display: none" 
								onClick="Ext.milan.pagejs.page_zdxzdc.removeUser()">移除</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		
		--%>
		<tr id="zxspr" style="display:'';">
			<th width="150">审核人：</th>
			<td>
			<mytag:select id="spr" title="请选择审核人" name="spr" sql="leader" isSql="false" listKey="userid" listValue="realname" headerKey="" headerValue="请选择"/>
			</td>
		</tr>
	</table>
	<div class="win-btn-panel">
	    <a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_zdxzdc.save('add_zdxzdc_form')">确 定</a>
		<a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_zdxzdc.closeWin(false);">取 消</a>
	</div>
</s:form>
<script>
ZdxzdcUtils = {};
ZdxzdcUtils.xzlb  = function(A){
	if(A.value == 1){
		$('zxry').style.display="none";
		$('zxspr').style.display="";
	}else if(A.value == 2){
		$('zxry').style.display="";
		$('zxspr').style.display="none";
	}else{
		$('zxry').style.display="";
		$('zxspr').style.display="";
	}
}
</script>
